package com.whw.springboot.bcucb.mapper;

import com.whw.springboot.bcucb.entity.Download;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface DownloadMapper {
    int deleteByPrimaryKey(Integer downloadId);

    int insert(Download record);

    int insertSelective(Download record);

    Download selectByPrimaryKey(Integer downloadId);

    int updateByPrimaryKeySelective(Download record);

    int updateByPrimaryKey(Download record);

    List<Download> selectByAll();

    List<Download> selectByCaseId(String caseId);

    List<Download> selectByUserId(String userId);

    List<Download> selectByUserIdAndDate(@Param("date") String date, @Param("dates") String dates, @Param("userId") String userId);

    List<Download> selectByCaseIdAndDate(@Param("date") String date, @Param("dates") String dates, @Param("caseId") String caseId);

    List<Download>  selectByAllAndDate(@Param("date") String date, @Param("dates") String dates);
}